<?php if (!defined('THINK_PATH')) exit();?><div class="row">
    <div class="col-sm-12">
        <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
            <thead>
                <tr role="row">
                    <th class="sorting text-center" tabindex="0">ID</th>
                    <th class="sorting text-center" tabindex="0">问题名称</th>
                    <th class="sorting text-center" tabindex="0">专业类型</th>
                    <th class="sorting text-center" tabindex="0">是否开启悬赏</th>
                    <th class="sorting text-center" tabindex="0">是否付费查看</th>
                    <th class="sorting text-center" tabindex="0">截止时间</th>
                    <th class="sorting text-center" tabindex="0">阅读量</th>
                    <th class="sorting text-center" tabindex="0">问题状态</th>
                    <th class="sorting text-center" tabindex="0">回答状态</th>
                    <th class="sorting text-center" tabindex="0">响应时间</th>
                    <th class="sorting text-center" tabindex="0">操作</th>
                </tr>
            </thead>
            <tbody>
            <?php if(is_array($lists)): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($vo["id"] > 0): ?><tr role="row">
                    <td align="center"><?php echo ($vo["id"]); ?></td>
                    <td><?php echo ($vo["title"]); ?></td>

                    <td><?php echo getCatNameStr($vo[cat_ids]);?></td>

                    <td><?php if($vo["open_reward"] == 1): ?>是 （金额：<?php echo ($vo["reward_money"]); ?>）<?php else: ?>否<?php endif; ?></td>
                    <td>
                        <?php if($vo["a_id"] > 0): if($vo["charge_view"] == 1): ?>是 （金额：<?php echo ($vo["charge_money"]); ?>）
                                <?php else: ?>
                                否<?php endif; ?>
                            <?php else: endif; ?>
                    </td>
                    <td><?php echo (date("Y-m-d H:i:s",$vo["stop_time"])); ?></td>

                    <td><?php echo ($vo["read_num"]); ?></td>

                    <td><?php echo ($q_status[$vo[question_status]]); ?></td>
                    <td><?php echo ($a_status[$vo[answer_status]]); ?></td>

                    <td><?php echo cacTime($vo[response_sec]);?></td>

                <td>

                    <a href="<?php echo U('accountant/answer_detail',array('id'=>$vo['q_id']));?>" data-toggle="tooltip" title="编辑" class="btn btn-info" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

                    <a class="btn btn-danger" href="javascript:;" data-url="<?php echo U('accountant/answer_handle');?>" data-id="<?php echo ($vo["q_id"]); ?>" onclick="delfun(this)"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
            <tfoot>
            </tfoot>
        </table>
    </div>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right"><?php echo ($page); ?></div>
</div>
<script>
    $(".pagination  a").click(function () {
        var href = $(this).attr('href');
        page = href.split('/');
        ajaxGetTable('search-form2', page[page.length - 1]);
        return false;
    });
</script>